package controller.managedBeans;

/**
 * Class encapsulated all possible states, that can be applied to so called 'mainArea' area on the page.
 * This ensured that properly template will be applied, and user will be redirected to desired page.
 * Next template to show obviously determined in Controller and pushes to Model.
 * @author Andrey Markhel
 */

public enum NavigationEnum {
	WELCOME("welcome.xhtml"),
	VIEW_TICKETS("tickets/viewTickets.xhtml"),
	CREATE_TICKET("tickets/createTicket.xhtml"),
	VIEW_ALL_QUEUE_TICKETS("tickets/viewallQueueTickets.xhtml"),
	VIEW_ALL_MY_TICKETS("tickets/viewallMyTickets.xhtml"),
	ANONYM("includes/publicShelves.xhtml"),
	FILE_UPLOAD("includes/fileUpload.xhtml"),
	USER_PREFS("includes/userPrefs.xhtml"),
	REGISTER("includes/register.xhtml"),
	SEARCH("includes/search.xhtml"),
	ALBUM_PREVIEW("includes/album.xhtml"),
	ALBUM_IMAGE_PREVIEW("/includes/image.xhtml"),
	SHELF_PREVIEW("/includes/shelf.xhtml"),
	ALL_SHELFS("/includes/userShelves.xhtml"),
	TAGS("includes/tag.xhtml"),
	ALL_ALBUMS("/includes/userAlbums.xhtml"),
	ALL_IMAGES("/includes/userImages.xhtml"),
	ALBUM_IMAGE_EDIT("/includes/imageEdit.xhtml"),
	ALBUM_EDIT("/includes/albumEdit.xhtml"),
	SHELF_EDIT("/includes/shelfEdit.xhtml"),
	SHELF_UNVISITED("/includes/shelfUnvisited.xhtml"),
	USER_SHARED_ALBUMS("/includes/userSharedAlbums.xhtml"),
	USER_SHARED_IMAGES("/includes/userSharedImages.xhtml"),
	ALBUM_UNVISITED("/includes/albumUnvisited.xhtml");
	/**/
	private NavigationEnum(String t){
		template=t;
	}
	
	private String template;
	
	public String getTemplate() {
		return template;
	}
}
